<template>
  <div class="common-layout">
    <el-container class="list-container">
      <el-aside width="30px"
        ><el-image :src="require('@/assets/location.png')" fit="fill"
      /></el-aside>
      <el-container>
        <el-header>
          <el-row>
            <el-col :span="8"
              ><span>{{ listData.gymItem.name }}</span></el-col
            >
            <el-col :span="4"><span>医务室</span></el-col>
            <el-col :span="4"><span>医疗点</span></el-col>
            <el-col :span="4"><span>车组</span></el-col>
            <el-col :span="4"><span>保障人员</span></el-col>
          </el-row>
        </el-header>
        <el-main>
          <el-row>
            <el-col :span="8"
              ><span>地址：{{ listData.gymItem.address }}</span></el-col
            >
            <el-col :span="4"
              ><span>{{ listData.gymItem.sickBay }}</span></el-col
            >
            <el-col :span="4"
              ><span>{{ listData.gymItem.cureCenter }}</span></el-col
            >
            <el-col :span="4"
              ><span>{{ listData.gymItem.carGroup }}</span></el-col
            >
            <el-col :span="4"
              ><span>{{ listData.gymItem.ensurance }}</span></el-col
            >
          </el-row></el-main
        >
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
// import { defineProps } from "vue";
const listData = defineProps({
  gymItem: {
    type: Object,
    default: () => {
      return null;
    },
  },
});
</script>

<style lang="scss" scoped>
.common-layout {
  height: 80px;
  padding: 10px;
  border-bottom: 1px #f1f2f6 solid;
  background-color: #ffffff;
  .el-container {
    height: 100%;
    .el-aside {
      text-align: center;
      .el-image {
        top: calc(50% - 15px);
        //image垂直居中
      }
    }
    .el-header {
      font-family: Microsoft YaHei-Regular;
      height: 35px;
      padding: 0px 20px;
      background-color: #ffffff;
    }
    .el-main {
      font-size: 14px;
      color: #8173d5;
      height: calc(100% - 35px);
      padding: 0px 20px;
      background-color: #ffffff;
    }
  }
}
</style>
